UpdateBoundsRequested

An event indicating that JavaScript requests to update bounds of the Browser instance.

JavaScript functions that request such an update are:

  • window.moveTo() — moves a window to the specified position.
  • window.moveBy() — moves a window a specified number of pixels relative to its current coordinates.
  • window.resizeTo() — resizes the window to the specified width and height.
  • window.resizeBy() — resizes the window by the specified pixels.

Functions

Link copied to clipboard
open fun bounds(): Rect
Returns the new bounds in screen coordinates.
Link copied to clipboard
open fun browser(): Browser
Returns the Browser instance initiated this event.
Link copied to clipboard
open fun scaleFactor(): Double
Returns the scale factor of the display where the Browser is located.